<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="ag" uri="http://www.ag.com/tags/core"%>
<%
String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!-- 信息公布主界面 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 
    
    <title>我的页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style type="text/css">
		body
		{
			padding:0px;margin:0px;
			background-color:#dceffd;
		}
		p
		{
		
			font-size:15px;
			color:blue;
		}
	</style>
	<link rel="stylesheet" type="text/css" href="/ag/wzp/css/eventaccept.css">
	<link rel="stylesheet" type="text/css" href="/ag/wzp/css/popup.css">
	<link rel="stylesheet" type="text/css" href="/ag/zhh/chat/css/input.css">
	<link rel="stylesheet" type="text/css" href="/ag/zhh/chat/css/base.css">
	<script type="text/javascript">
  		 	var contextPath = "<%=path%>";
  		</script>
	<script type="text/javascript" src="/ag/js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="/ag/zhh/chat/js/jquery.textarearesizer.compressed.js"></script>
	<script type="text/javascript" src="/ag/zhh/chat/js/input.js"></script>
	<script type="text/javascript" src="/ag/zhh/chat/js/openAddStep.js"></script>
	<script type="text/javascript" src="/ag/zhh/chat/js/jquery[1].hotkeys-0.7.9.js"></script>
	<script src="/ag/jquery-treeview/lib/jquery.cookie.js" type="text/javascript"></script>
	<script type="text/javascript" charset="UTF-8" src="/ag/zhh/js/JsonRpcClient.js"></script>
	<script type="text/javascript" src="/ag/zhh/chat/js/queryLog.js"></script>
	<script type="text/javascript" src="/ag/zhh/chat/js/vice_chooseUserForChat.js"></script>
	<script type="text/javascript" src="/ag/zhh/chat/js/changeViceCommender.js"></script>
	<link type="text/css" href="/ag/css/dialog/jquery.ui.all.css" rel="stylesheet" />
		
		
		
	
		<script type="text/javascript">
		$(document).ready(function() {
			$('textarea.resizable:not(.processed)').TextAreaResizer();
				//$('iframe.resizable:not(.processed)').TextAreaResizer();
				//$("#send").click(send);
			//	$("#mess").bind('keydown', 'ctrl+enter', send);
				
			//	function send(){					//发送
			//		var mess = $("#mess").val();			//获取信息
			//		var option = $("#myselect").val();		//获取选项
					
				//	$("<p>【"+option+"】:&nbsp;&nbsp;<br>"+mess+"</p>").appendTo($("#content"));		//将信息发送到屏幕上
					//$("#mess").val("");
			//		$("#content")[0].scrollTop = $("#content")[0].scrollHeight;
			//		oPopDiv.hide();
  			//		$("#mess").text("").trigger("blur");
			//	}
			//	$("#content").scroll(function()
			//	{
				/*	setTimeout(function(){
				$("#content")[0].scrollTop = $("#content")[0].scrollHeight;
				},5000);*/
			
					
			//	});
			
			});
		</script>
  </head>
  
  <body id="body"> 
  
  <div id="mainWindow">

  	<div id="main">
    	 <textarea rows="18" cols="" class="resizable" id="content"  >
    	 </textarea>
    </div>  	
  	<div id="middle">
	<table border="0" width="100%" height="100%" border="0">
	<tr >
		<td>
			   <span id="selectSpan" style="margin-bottom:2px;width:100%">
    							<select id='myselect'>
  							
 								</select>:
    		    </span>
		</td>
		<td>
			<!--<ag:authorize permission="4700">-->
			<!--  </ag:authorize>   -->
			<ag:vicecommander>
			<div  style="float:right;margin-bottom:0px;margin-right:7px;"><input type="button" id="nextStep" value="下一环节" class="button"></input></div>
			</ag:vicecommander>
		</td>
		
	</tr>
		<tr >
			<td width="76%">
		
    		  <textarea rows="4" cols="100" class="resizable" id="mess" onkeyup="findMessage();"></textarea>
    		  <div id="popup"  class="special">
    		  	<ul id="messageUl"></ul>
    		  </div>
    		 
			</td>
			<td valign="bottom" id="sendTd" >
				<ag:vicecommander>
			 	
			 	</ag:vicecommander>
			 	<span style="width:100px;align:right;margin-bottom:20px;padding-left:30px;"><input type="button" id="send" value="发送(ctrl+enter)" class="button2"></span>
			</td>
			
		</tr>
	</table>	
  </div>
	
   	<div id="foot">
   
   
   	<div style="padding-bottom:0;background: url('/ag/images/main_38.gif') repeat-x scroll 0% 0% transparent;" id="switchpic"></div>

   	<div id="foot2" style="width:100%">

    	<table width="100%">
    		<tr>
    			<td align="center"><input type="button" id="exit" value="退出" class="button"></td>
    			<td align="center"><input type="button" id="analyze" value="工情分析" class="button"></td>
    			<!--<td align="center"><input type="button" id="eventRelated" value="事件关联" class="button"></td>-->
    			<td align="center"><input type="button" id="advice" value="处置建议" class="button"></td>
    			<td align="center"><input type="button" id="task_give" value="任务分派" class="button"></td>
    			<td align="center"><input type="button" id="task_follow" value="任务跟踪" class="button"></td>
    			<ag:vicecommander>
    			<td align="center"><input type="button" id="changeViceCommender" value="更改指挥长" class="button"></td>
    			</ag:vicecommander>
    			<td align="center"><input type="button" id="finishProcessing" value="结束处置流程" class="button"></td>
    			<td align="center"><input type="button" id="address_book" value="通讯录" class="button"></td>
    			<td align="center">
    				<ag:vicecommander>
					<input type="button" id="addStep" value="增加环节" class="button">
					</ag:vicecommander>
				</td>
    		</tr>
    	</table>
    </div>
  </div>
  </div>

  <script type="text/javascript">
  	$(function(){
  
  		$("#exit").click(function(){parent.location.href="/ag/zhh/index.jsp"});
  		$("#advice").click(function(){window.open("/ag/dgm/findTypes_DGMdisposalAdvice.action","newwindow",'height='+(screen.height * 0.8)+',width='+(screen.width * 0.8)+',scrollbars=yes, resizable=yes')});
  		$("#analyze").click(function(){window.open("/ag/do/analyze_findById.action","newwindow",'height='+(screen.height * 0.8)+',width='+(screen.width * 0.8)+',scrollbars=yes, resizable=yes')});
  		//$("#eventRelated").click(function(){window.open("/ag/zhh/content/eventRelated.jsp","newwindow",'height='+(screen.height * 0.8)+',width='+(screen.width * 0.8)+',scrollbars=yes, resizable=yes')});
  		$("#task_give").click(function(){window.open("/ag/zhh/zhhaddtask2.jsp","newwindow",'height='+(screen.height * 0.8)+',width='+(screen.width * 0.8)+',scrollbars=yes, resizable=yes')});
  		//$("#address_book").click(function(){window.open("/ag/dgm/findTypes_DGMdisposalAdvice.action","newwindow",'height='+screen.height+',width='+screen.width+',top=10,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no, status=no')});
  		$("#address_book").click(function(){window.open("/ag/do/medicineTree_getMedicineTreeRoot.action?treeType=0001","newwindow",'height='+(screen.height * 0.8)+',width='+(screen.width * 0.8)+',scrollbars=yes, resizable=yes')});
  		$("#task_follow").click(function(){window.open("/ag/zhh/zhh_task_main.jsp","newwindow",'height='+(screen.height * 0.8)+',width='+(screen.width * 0.8)+',scrollbars=yes, resizable=yes')});
  		$("#find8").click(function(){window.open("/ag/zhh/contact.jsp","newwindow",'height='+(screen.height * 0.8)+',width='+(screen.width * 0.8)+',scrollbars=yes, resizable=yes')});
  	
  	
  		$(this).scroll(function() {    // 页面发生scroll事件时触发   
            var bodyTop = 0;   
            if (typeof window.pageYOffset != 'undefined') {   
                bodyTop = window.pageYOffset;   
            }
             else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')
             {   
                bodyTop = document.documentElement.scrollTop;   
            }   
            else if (typeof document.body != 'undefined') {   
                bodyTop = document.body.scrollTop;   
            }   
  
            $("#switchpic").css("top",bodyTop)   // 设置层的CSS样式中的top属性, 注意要是小写，要符合“标准” 
        });   
  	});
  </script>
  			
  	<!-- 负责人选择窗口 -->	
    <div id="leaderChooseWindow">
        <table  border='0' width='98%'  height="98%" cellpadding="3" cellspacing="1" 
			   align="center" style="background-color: #1177bd">
	          <tr> <td bgcolor="#ffffff">
	               <div id="userForm">
                              <table width="480px" align="center">
                                 <tbody id="selectArea" >
                                 	<tr>
								<td align="left">
                                 	<span class="span_n" style="color: #960;">选择方式:</span>
                                 	<input name='select' type='radio' id='role' />按角色选择
									<input name='select' type='radio' id='dept' checked="checked"/>按部门选择
								</td>
					   		</tr>
					   		<tr id='roleArea' style="display: none;">
								  <td align="left">
									   <span class="span_n" >按角色选择:</span>
									    <select id="roleList" ></select>
								  </td>
								  
							   </tr>
							  <tr id='deptArea' style="display:none">
								  <td align="left" >
									   <span class="span_n" style="color: #960;">按部门选择:</span>
									    <select id="deptType" class="deptType" ></select>
										<select id="q_UDept" class="uDept" ></select>
								  </td>
							   </tr>
							 
							   <tr>
								  <td>
									 <div style="margin-top: 10px">
										<table width="460px" align="center">
										<tr>
									  <td width="190px" align="center"><span class="span_n" style="color: #960;">可选人员</span></td>
									  <td width="80px" align="center" ></td>
									  <td width="190px" align="center" ><span class="span_n" style="color: #960;">已选人员 </span></td>
									   </tr><!--
									   
									   <tr>	  
									   <td width="190px" height="180px" >
										<ul id="deptul">
										</ul>
								      </td>
								      </tr>
									   <tr>
								
									  --><td  id="subDeptstd" width="190px" height="180px" align="right"  style="display:none">
										<select style="width:190px;height:180px" id="subDepts" name="all" size="6" multiple="multiple">
									    </select>
								      </td>
								      
								     <td width="250px" height="180px"  id="deptultd" align="center"    width="190px" height="180px"  >
								         <div align="left"  style="height:180px; width:250px; overflow-y:auto; overflow-x:auto; border:1px solid #8ACEEC !important">
										 <ul style="list-style:none" id="deptul"></ul>
										 </div>
									 </td>
										  
									  <td width="80px" align="center" > 
									    <img id="addDept" src="/ag/wzp/images/arrow_right.gif" style="cursor: pointer;"/>
									    <br/><br/>
									    <img id="delDept" src="/ag/wzp/images/arrow_left.gif" style="cursor: pointer;"/>
								      </td>
									  <td width="250px" height="180px" align="left" >
                                       <select style="width:190px;height:180px" id="selDepts" name="sel" size="6" multiple="multiple">
                                       </select>
								      </td>
									</tr>
										    </table>
										 </div>
								  </td>
							      <td></td>   
							   </tr>
						 </tbody>
						 <tr class="trtab">
          					<td  align="center">
          						<input id='selOk' class="submit" type="Button" value="确定"/> 
          						<span style="padding-left:20px">
          						<input id='selCancel' class="submit" type="button" value="取消"/></span>
          						</td>
          					</tr>
                        </table>
	                 </div>
	              </td>
	          </tr>	       
	    </table>
    </div>
  			
  	<span style="display:none" id="eventId"><%= request.getParameter("eventId")%></span>
  	<!-- 最大时间，初始化时为0 -->
  	<span style="display:none" id="maxTime">0</span>
  	
  </body>
	<link type="text/css" href="/ag/css/dialog/jquery.ui.all.css" rel="stylesheet" />
	<link type="text/css" href="/ag/css/dialog/demos.css" rel="stylesheet" />
	<!-- JQuery的UI插件库 -->
	<script type="text/javascript" src="/ag/js/dialog/jquery.bgiframe-2.1.1.js"></script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.core.js"></script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.mouse.js"></script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.button.js"></script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.draggable.js"></script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.position.js"></script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.resizable.js"></script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.ui.dialog.js"></script>
	<script type="text/javascript" src="/ag/js/dialog/jquery.effects.core.js"></script>
	<script type="text/javascript" src="/ag/js/accrodin/jquery.ui.accordion.js"></script>
</html>
